import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86132
 * Date: 2022-04-11
 * Time: 15:29
 */
public class Demo6 {
    public static void main(String[] args) {
        File f=new File(" ./aaa");
        File f2=new File("./eee");
        f.renameTo(f2);//把f名字改成f2的名字
    }

}
